import Axios from 'axios'
import { AutheUtils } from '@/utils'

const axios = Axios.create({
    baseURL: "/sv",
    timeout: 30000
})

axios.interceptors.request.use(config => {
    const token = AutheUtils.getToken();
    if (token && (token as string).length > 0){
        config.headers.token = token;
    }

        return config;
})

export default axios